package com.mdd.front.validate.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 接单参数
 * @author LikeAdmin
 */
@Data
@ApiModel("接单更新参数")
public class OrderAcceptUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键")
    private String id;

    @NotNull(message = "orderId参数缺失")
    @ApiModelProperty(value = "订单ID")
    private String orderId;

    @NotNull(message = "userId参数缺失")
    @ApiModelProperty(value = "用户ID")
    private String userId;

    @NotNull(message = "adminId参数缺失")
    @ApiModelProperty(value = "管理ID")
    private String adminId;

    @NotNull(message = "orderSn参数缺失")
    @ApiModelProperty(value = "订单编号")
    private String orderSn;

    @NotNull(message = "contact参数缺失")
    @ApiModelProperty(value = "下单人名")
    private String contact;

    @NotNull(message = "mobile参数缺失")
    @ApiModelProperty(value = "联系方式")
    private String mobile;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "订单状态:待预约0，已经出发1，服务中2，已经完成3 ")
    private String status;

    @NotNull(message = "province参数缺失")
    @ApiModelProperty(value = "省")
    private Long province;

    @NotNull(message = "city参数缺失")
    @ApiModelProperty(value = "市")
    private Long city;

    @NotNull(message = "district参数缺失")
    @ApiModelProperty(value = "区")
    private Long district;

    @NotNull(message = "address参数缺失")
    @ApiModelProperty(value = "详细地址")
    private String address;

    @NotNull(message = "remark参数缺失")
    @ApiModelProperty(value = "备注")
    private String remark;

    @NotNull(message = "evaluate参数缺失")
    @ApiModelProperty(value = "客户评价")
    private String evaluate;

    @NotNull(message = "rating参数缺失")
    @ApiModelProperty(value = "客户评分")
    private Integer rating;

}
